<!DOCTYPE html>

<html>



<head>

    <meta charset="utf-8"/>

    <title>订单管理</title>

    <link rel="stylesheet" href="__PUBLIC__/Leader/css/bootstrap.css">

    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Leader/css/index.css"/>

    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Leader/css/bootstrap-datetimepicker.css"/>

</head>

<body>

<div class="wrapper main-wrapper wrapper-content ">

    <!--主要内容-->

    <div class="page-content" style="display: block;">

        <div class="page-heading" style="position:relative;">

            <h2>提现审核</h2>

        </div>





        <div class="panel panel-default" style="margin-top: 20px;">

            <div class="panel-body" style="text-align: center;">

                <table class="table table-responsive">

                    <tbody>

                        <tr>

                            <td>审核</td>

                            <td>

                                <input type="radio" name="check" value="2" <if condition="$withdraw['status'] eq 2">checked</if> />通过

                                <input type="radio" name="check" value="3" <if condition="$withdraw['status'] eq 3">checked</if> />不通过

                            </td>

                            <td>

                                <button onclick="checkflag()">提交</button>

                            </td>

                        </tr>

                    </tbody>

                </table>

            </div>

        </div>

    </div>

</div>

<script src="__PUBLIC__/Leader/js/jquery.js" type="text/javascript" charset="utf-8"></script>

<script src="__PUBLIC__/layer/layer.js" type="text/javascript" charset="utf-8"></script>

<script type="text/javascript">

    function checkflag(){

        var v = $("input[name=check]:checked").val();

        var id = "{$id}";

        $.ajax({

            url: "{:U('Order/checkflag')}",

            data: { 'check' :v,'id':id},

            type: 'POST',

            success:function(res){

                var obj=JSON.parse(res);

                if(obj.code == 1){

                    layer.msg(obj.msg);

                    var index = parent.layer.getFrameIndex(window.name);

                    setTimeout(function () {

                        parent.layer.close(index); // 关闭layer

                        location.reload();

                    },1000);

                }else{

                    layer.msg(obj.msg);

                }



            }

        })

    }

</script>

</body>

</html>